package com.glory.dgcpcpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.dgcpcpda.R;
import com.glory.dgcpcpda.entity.AlarmStepEntity;

import java.util.List;

public class AlarmStepAdapter extends BaseQuickAdapter<AlarmStepEntity.AlarmStepSpecLine, BaseViewHolder> {

    public AlarmStepAdapter(@Nullable List<AlarmStepEntity.AlarmStepSpecLine> data) {
        super(R.layout.item_alarm_step, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AlarmStepEntity.AlarmStepSpecLine item) {
        helper.setText(R.id.list_tv1,item.getPosition());
        helper.setText(R.id.list_tv2,item.getStepDescription());
    }
}
